﻿using Basic.FormGatewaryModular.Interface;
using Basic.FormRemoteModel.PageControl;
using Basic.FormRemoteModel.PageControl.Model;

namespace Basic.FormGatewaryModular.Services
{
    internal class PageControlService : IPageControlService
    {
        public PageControlItem[] GetItems ( bool isEdit )
        {
            return new GetPageControlItem
            {
                IsEdit = isEdit
            }.Send();
        }

        public PageControlDto Get ( long id )
        {
            return new GetPageControl { Id = id }.Send();
        }
    }
}
